package com.hx.er.mapper;

import java.util.List;
import java.util.Map;

import com.hx.er.bean.base.FoodBean;
import com.hx.er.bean.base.LabelBean;
import com.hx.er.bean.detail.FoodDetailBean;
import com.hx.er.bean.detail.LabelDetailBean;

public interface IFoodMapper {
	public List<FoodBean> getFoodAliveList(Map<String, Object> conditions);

	public FoodDetailBean getFoodAliveById(long foodId);

	public FoodDetailBean getLastAliveFood(FoodBean foodBean);

	public FoodDetailBean getNextAliveFood(FoodBean foodBean);

	public int getFoodAliveCount(Map<String, Object> conditions);

	public void insertFoodWithoutId(FoodBean foodBean);

	public int deleteFood(FoodBean foodBean);

	public int updateFood(FoodBean foodBean);

	public int updateFoodSort(FoodBean foodBean);
	
	public LabelDetailBean getLabelDetailAliveById(long labelId);

	public List<LabelDetailBean> getLabelDetailAliveList(Map<String, Object> conditions);

	public int getLabelDetailAliveCount(Map<String, Object> conditions);

	public void insertLabelWithoutId(LabelBean labelBean);

	public int deleteLabel(LabelBean labelBean);

	public int updateLabel(LabelBean labelBean);

	public int updateLabelSort(LabelBean labelBean);
}
